import request from '@/utils/request'
import {appConfig} from '../../config/app'

let service = appConfig.microServModules.goods + 'api/goodsType'
let supplierService = appConfig.microServModules.system + 'api/supplierApi'

export function queryGoodsType (data) {
  return request(`${service}/queryPortalGoodsType`, {method: 'get', data: data})
}

export function queryCommonType (data) {
  return request(`${service}/queryCommonType`, {method: 'get', data: data})
}

export function setCommonType (data) {
  return request(`${service}/setCommonType`, {method: 'get', data: data})
}
//   不分页查询
export function goodsTypeList (data) {
  return request(`${service}/goodsTypeList`, {method: 'post', data})
}
export function querySupplierLibrary(data) {
  return request(`${supplierService}/querySupplierLibrary`, {
    method: 'post',
    data: data
  })
}